package com.sq.partner.manager.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.INlifeCoreProdDao;
import com.sq.partner.manager.mybatis.model.NlifeCoreProd;

@Repository
public class NlifeCoreProdDaoImpl extends BaseDaoImpl implements
		INlifeCoreProdDao {

	@Override
	public NlifeCoreProd queryById(String coreProdCode) throws Exception {
		NlifeCoreProd nlifeCoreProd = (NlifeCoreProd)this.query("queryNlifeCoreProdById", coreProdCode==null?"":coreProdCode);

		return nlifeCoreProd;
	}

	@Override
	public void insertCoreProds(List<NlifeCoreProd> list) throws Exception {
		this.batchInsert("insertNlifeCoreProd", list);	
	}

	@Override
	public List<Map<String, Object>> queryUpdateInfomation(String prodCode) throws Exception {
		return this.queryList("queryUpdateInfomation", prodCode);
	}
}
